home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / dev / c / CLib-SDI.lha / CLib-SDI / include2mos / inline / example_protos.h < prev    next >
C/C++ Source or Header  |  2002-10-27  |  2KB  |  56 lines

  1. #ifndef _VBCCINLINE_EXAMPLE_H
  2. #define _VBCCINLINE_EXAMPLE_H
  3.  
  4. #ifndef EXEC_TYPES_H
  5. #include <exec/types.h>
  6. #endif
  7.  
  8. LONG __ex_TestRequest(struct ExampleBase *, STRPTR title, STRPTR body, STRPTR gadgets) =
  9.     "\tlwz\t11,100(2)\n"
  10.     "\tstw\t3,56(2)\n"
  11.     "\tmtlr\t11\n"
  12.     "\tstw\t4,32(2)\n"
  13.     "\tstw\t5,36(2)\n"
  14.     "\tstw\t6,40(2)\n"
  15.     "\tli\t3,-30\n"
  16.     "\tblrl";
  17. #define ex_TestRequest(title, body, gadgets) __ex_TestRequest(ExampleBase, (title), (body), (gadgets))
  18.  
  19. LONG __ex_TestRequest2A(struct ExampleBase *, STRPTR title, STRPTR body, STRPTR gadgets, APTR args) =
  20.     "\tlwz\t11,100(2)\n"
  21.     "\tstw\t3,56(2)\n"
  22.     "\tmtlr\t11\n"
  23.     "\tstw\t4,32(2)\n"
  24.     "\tstw\t5,36(2)\n"
  25.     "\tstw\t6,40(2)\n"
  26.     "\tstw\t7,44(2)\n"
  27.     "\tli\t3,-36\n"
  28.     "\tblrl";
  29. #define ex_TestRequest2A(title, body, gadgets, args) __ex_TestRequest2A(ExampleBase, (title), (body), (gadgets), (args))
  30.  
  31. #if !defined(NO_INLINE_STDARG) && (__STDC__ == 1L) && (__STDC_VERSION__ >= 199901L)
  32. LONG __ex_TestRequest2(struct ExampleBase *, long, long, long, long, STRPTR title, STRPTR body, STRPTR gadgets, ...) =
  33.     "\tlwz\t11,100(2)\n"
  34.     "\tstw\t3,56(2)\n"
  35.     "\tmtlr\t11\n"
  36.     "\tstw\t8,32(2)\n"
  37.     "\tstw\t9,36(2)\n"
  38.     "\tstw\t10,40(2)\n"
  39.     "\taddi\t4,1,8\n"
  40.     "\tstw\t4,44(2)\n"
  41.     "\tli\t3,-36\n"
  42.     "\tblrl";
  43. #define ex_TestRequest2(title, body, ...) __ex_TestRequest2(ExampleBase, 0, 0, 0, 0, (title), (body), __VA_ARGS__)
  44. #endif
  45.  
  46. ULONG __ex_TestRequest3(struct ExampleBase *, struct Hook * hook) =
  47.     "\tlwz\t11,100(2)\n"
  48.     "\tstw\t3,56(2)\n"
  49.     "\tmtlr\t11\n"
  50.     "\tstw\t4,32(2)\n"
  51.     "\tli\t3,-42\n"
  52.     "\tblrl";
  53. #define ex_TestRequest3(hook) __ex_TestRequest3(ExampleBase, (hook))
  54.  
  55. #endif /*  _VBCCINLINE_EXAMPLE_H  */
  56.